package com.jd.ymcc.feigin;

import com.jd.ymcc.domain.Login;
import com.jd.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(contextId = "12", value = "service-uaa",fallbackFactory = LoginFeignClientFallbackFactory.class)
public interface LoginFeignClient {
    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    JSONResult saveOrUpdate(@RequestBody Login login);
}
